import request from '@/utils/request'

// 获取专业列表数据
export function getMajorList() {
  return request({
    url: '/admin/expschedule/major/get',
    method: 'GET'
  })
}

// 添加专业
export function addMajor(form) {
  return request({
    url: '/admin/expschedule/major/save',
    method: 'POST',
    data: form
  })
}

// 删除专业
export function deleteMajor(id) {
  return request({
    url: `/admin/expschedule/major/remove/${id}`,
    method: 'DELETE'
  })
}
